#!/bin/bash

echo "正在安装Vue 3博客项目的依赖..."
npm install

if [ $? -ne 0 ]; then
    echo "依赖安装失败，请检查网络连接和Node.js版本"
    exit 1
fi

echo ""
echo "依赖安装完成！正在启动开发服务器..."
echo "请在浏览器中访问: http://localhost:3000"
echo ""
echo "按 Ctrl+C 停止服务器"
echo ""

npm run dev
